import { Train } from '../../modals'
import { stationMap } from '../stations'

export const trainsK = [
  // 跨省线路
  // 连云港-宝鸡
  new Train({
    id: 'K101',
    train_number: 'K101',
    color: 'black',
    times: Array.from({ length: 18 }).map((_, i) => 490 + i * 5),
    stations: [
      stationMap['15-012'],
      stationMap['15-011'],
      stationMap['15-010'],
      stationMap['15-007'],
      stationMap['13-010'],
      stationMap['12-013'],
      stationMap['12-014'],
      stationMap['12-015'],
      stationMap['12-001'],
      stationMap['12-016'],
      stationMap['12-017'],
      stationMap['12-018'],
      stationMap['12-019'],
      stationMap['14-003'],
      stationMap['14-002'],
      stationMap['14-001'],
      stationMap['14-004'],
      stationMap['14-005'],
    ],
    start: stationMap['15-012'],
    end: stationMap['14-005'],
  }),
  // 宝鸡-连云港
  new Train({
    id: 'K102',
    train_number: 'K102',
    color: 'black',
    times: Array.from({ length: 18 }).map((_, i) => 490 + i * 5),
    stations: [
      stationMap['14-005'],
      stationMap['14-004'],
      stationMap['14-001'],
      stationMap['14-002'],
      stationMap['14-003'],
      stationMap['12-019'],
      stationMap['12-018'],
      stationMap['12-017'],
      stationMap['12-016'],
      stationMap['12-001'],
      stationMap['12-015'],
      stationMap['12-014'],
      stationMap['12-013'],
      stationMap['13-010'],
      stationMap['15-007'],
      stationMap['15-010'],
      stationMap['15-011'],
      stationMap['15-012'],
    ],
    start: stationMap['14-005'],
    end: stationMap['15-012'],
  }),
  // 太原-上海
  new Train({
    id: 'K103',
    train_number: 'K103',
    color: 'black',
    times: Array.from({ length: 23 }).map((_, i) => 480 + i * 5),
    stations: [
      stationMap['10-003'],
      stationMap['10-009'],
      stationMap['06-001'],
      stationMap['06-045'],
      stationMap['06-046'],
      stationMap['11-002'],
      stationMap['11-022'],
      stationMap['12-013'],
      stationMap['13-010'],
      stationMap['15-007'],
      stationMap['15-019'],
      stationMap['15-020'],
      stationMap['15-021'],
      stationMap['15-022'],
      stationMap['15-013'],
      stationMap['15-001'],
      stationMap['15-002'],
      stationMap['15-003'],
      stationMap['15-004'],
      stationMap['15-005'],
      stationMap['15-006'],
      stationMap['20-002'],
      stationMap['20-001'],
    ],
    start: stationMap['10-003'],
    end: stationMap['20-001'],
  }),
  // 上海-太原
  new Train({
    id: 'K104',
    train_number: 'K104',
    color: 'black',
    times: Array.from({ length: 23 }).map((_, i) => 480 + i * 5),
    stations: [
      stationMap['20-001'],
      stationMap['20-002'],
      stationMap['15-006'],
      stationMap['15-005'],
      stationMap['15-004'],
      stationMap['15-003'],
      stationMap['15-002'],
      stationMap['15-001'],
      stationMap['15-013'],
      stationMap['15-022'],
      stationMap['15-021'],
      stationMap['15-020'],
      stationMap['15-019'],
      stationMap['15-007'],
      stationMap['13-010'],
      stationMap['12-013'],
      stationMap['11-022'],
      stationMap['11-002'],
      stationMap['06-046'],
      stationMap['06-045'],
      stationMap['06-001'],
      stationMap['10-009'],
      stationMap['10-003'],
    ],
    start: stationMap['20-001'],
    end: stationMap['10-003'],
  }),
  // 省内线路
  // 山海关-沈阳
  new Train({
    id: 'K1001',
    train_number: 'K1001',
    color: 'black',
    times: Array.from({ length: 10 }).map((_, i) => 490 + i * 5),
    stations: [
      stationMap['05-058'],
      stationMap['05-059'],
      stationMap['05-060'],
      stationMap['05-061'],
      stationMap['05-062'],
      stationMap['05-063'],
      stationMap['05-064'],
      stationMap['05-065'],
      stationMap['05-066'],
      stationMap['05-014'],
    ],
    start: stationMap['05-058'],
    end: stationMap['05-014'],
  }),
  // 沈阳-山海关
  new Train({
    id: 'K1002',
    train_number: 'K1002',
    color: 'black',
    times: Array.from({ length: 10 }).map((_, i) => 490 + i * 5),
    stations: [
      stationMap['05-014'],
      stationMap['05-066'],
      stationMap['05-065'],
      stationMap['05-064'],
      stationMap['05-063'],
      stationMap['05-062'],
      stationMap['05-061'],
      stationMap['05-060'],
      stationMap['05-059'],
      stationMap['05-058'],
    ],
    start: stationMap['05-014'],
    end: stationMap['05-058'],
  }),
];
